package yxy.game.pm2.bean.db.po;

import yxy.apple.db.ResultObjectBuilder;

import java.util.Date;

public class PassbarrierRecordPo {

    private String playerCode;
    private String code;//
    private Date date;// 时间
    private String recordCodes ;// 录像码 jsonarrary
    private boolean isWin;// 攻方是否胜利
    private String infoA;// 进攻方
    private String infoB;// 防守方
    private int degree ;
    private int score ;
    private int rank ;
    private long updateTime;


    public static ResultObjectBuilder<PassbarrierRecordPo> builder = rs -> {
        PassbarrierRecordPo u = new PassbarrierRecordPo();
        u.setPlayerCode(rs.getString("pCode"));
        u.setCode(rs.getString("code"));
        u.setDate(rs.getDate("date"));
        u.setRecordCodes(rs.getString("recordCodes"));
        u.setWin(rs.getBoolean("isWin"));
        u.setInfoA(rs.getString("infoA"));
        u.setInfoB(rs.getString("infoB"));
        u.setDegree(rs.getInt("degree"));
        u.setScore(rs.getInt("score"));
        u.setRank(rs.getInt("rank"));
        u.setUpdateTime(rs.getLong("updateTime"));
        return u;
    };


    public String getPlayerCode() {
        return playerCode;
    }

    public void setPlayerCode(String playerCode) {
        this.playerCode = playerCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getRecordCodes() {
        return recordCodes;
    }

    public void setRecordCodes(String recordCodes) {
        this.recordCodes = recordCodes;
    }

    public boolean isWin() {
        return isWin;
    }

    public void setWin(boolean win) {
        isWin = win;
    }

    public String getInfoA() {
        return infoA;
    }

    public void setInfoA(String infoA) {
        this.infoA = infoA;
    }

    public String getInfoB() {
        return infoB;
    }

    public void setInfoB(String infoB) {
        this.infoB = infoB;
    }

    public int getDegree() {
        return degree;
    }

    public void setDegree(int degree) {
        this.degree = degree;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public static ResultObjectBuilder<PassbarrierRecordPo> getBuilder() {
        return builder;
    }

    public static void setBuilder(ResultObjectBuilder<PassbarrierRecordPo> builder) {
        PassbarrierRecordPo.builder = builder;
    }
}
